#pragma once

#define SIZE 1024
 struct IO_FILE
{
    int flag; // 刷新方式
    int fd;
    char outbuffer[SIZE];
    int cap;
    int size;
};
typedef struct IO_FILE mFILE;
mFILE *myfopen(const char *pathname, const char *mode);
int myfwrite(const void *ptr, int num, mFILE *stream);
void myfflush(mFILE*stream);
void myclose(mFILE*stream);
